//package com.example.wxy2.service.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.example.wxy.entity.login;
//import com.example.wxy.mapper.loginMapper;
//import com.example.wxy.service.SysUserService;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//
//@Service
//public class SysUserServiceImpl implements SysUserService {
//
//    @Resource
//    private loginMapper loginMapper;
//
//    @Override
//    public login findUser(String username, String password) {
//        LambdaQueryWrapper<login> queryWrapper = new LambdaQueryWrapper<>();
////        queryWrapper.eq(login::getUsername, username);
////        queryWrapper.eq(login::getPwd, password);
////        queryWrapper.select(login::getUsername,login::getId);
////        queryWrapper.last("limit 1");   //保证查询效率
//
//        login login1 = new login();
//        login1.setUsername("admin");
//        login1.setPwd("123456");
//        login1.setId(2);
//        queryWrapper.setEntity(login1);
//    return loginMapper.selectOne(queryWrapper);
////        return loginMapper.selectAll(queryWrapper);
//    }
//
//    @Override
//    public login findUserById(int id) {
//        return null;
//    }
//}
